<div class="provinder">
    <div class="items"><a  class="active" href="<?php echo site_url('Toan-Quoc'); ?>">Toàn Quốc</a></div>
    <div class="items"><a href="<?php echo site_url('Ha-Noi'); ?>">Hà Nội</a></div>
    <div class="items"><a href="<?php echo site_url('Ho-Chi-Minh'); ?>">TP Hồ Chí Minh</a></div>
    <div class="items"><a href="<?php echo site_url('Da-Nang'); ?>">Đà Nẵng</a></div>
    <div class="items"><a href="<?php echo site_url('Hai-Phong'); ?>">Hải Phòng</a></div>
    <div class="items no-bg"><a href="javascript:void(0);" class="drop">Chọn Tỉnh/Thành</a>
        <div class="showcity" style="display:none;">
        <div class="boxOvlCity">
        <div class="contentOvlCity">
        <?php 
        echo '<div class="RegionPanel"><div class="Region" style="background:none">Miền Bắc</div>';
            $i=0;
            foreach($provinder as $key=>$item){
                if($item['region']==1){
                    $css ="";
                    if($i==0 || $i==1){$css = "itemactive";}
                    echo '<div class="item clear"><a href="'.site_url($item["alias"]).'" class="'.$css.'">'.$item['name'].'</a></div>';
                    $i++;
                }
            }
            echo '</div>';
            echo '<div class="RegionPanel"><div class="Region" style="background:none">Miền Trung</div>';
            $j=0;
            foreach($provinder as $key=>$item){
                if($item['region']==2){
                    $css ="";
                    if($j==0){$css = "itemactive";}
                    echo '<div class="item clear"><a href="'.site_url($item["alias"]).'" class="'.$css.'">'.$item['name'].'</a></div>';
                    $j++;
                }
            }
            echo '</div>';
            echo '<div class="RegionPanel"><div class="Region close">Miền Nam</div>';
            $k=0;
            foreach($provinder as $key=>$item){
                 if($item['region']==3){
                    $css ="";
                    if($k==0){$css = "itemactive";}
                    echo '<div class="item clear"><a href="'.site_url($item["alias"]).'" class="'.$css.'">'.$item['name'].'</a></div>';
                    $k++;
                }
            }
            echo '</div>';
        ?>
			</div>
         </div>
        </div>
    </div>
  
</div>
